#pragma once
#include "BaseDispSprite.h"
#include "SpriteCombined.h"
class SpriteTime : public SpriteCombined
{
public:
	SpriteTime(LPDIRECT3DTEXTURE9 tex, 
		int nWidth,
		int nHeight,
		unsigned short nNumOfFrame,
		unsigned short nCol,
		int nLayer,
		bool bDrawOnView=false
		);
	~SpriteTime(void);
	void SetTime(DWORD dTime){m_dTime=dTime/1000;}
	bool Draw(DWORD dwCurrentTime);
private:
	DWORD m_dTime;
	int m_nWidth;
};

